package artificialNeuralNetworks.Demo;

import java.util.ArrayList;

import decisiontreelearning.DecisionTree.Example;
import artificialNeuralNetworks.ANN.ANNProblem;

/**
 * FileName:     IdentityProblem.java
 * @Description: 
 *
 * @author Xunhu(Tiger) Sun
 *         email: TigerSun86@gmail.com
 * @date Mar 6, 2014 10:13:58 PM 
 */
public class IdentityProblem extends ANNProblem {

    @Override
    public ArrayList<Double> getOutput (Example ex) {
        final ArrayList<Double> train = new ArrayList<Double> ();
        final String target = ex.get(ex.size() -1);
        for (String value : target.split(" ")){
            train.add(Double.parseDouble(value));
        }
        return train;
    }

}
